package main.java.ssm.dao;

import ssm.entity.User;

import java.util.List;
import java.util.Map;

/**
 * Created by silence on 17-6-5.
 */
public interface UserDao {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    String findPasswordByUsername(String username);

    List<User> findAllByQuery(User user) ;

    List<User> list(Map<String, Object> map);

    Long getTotal(Map<String, Object> map);

    User findUserByUsername(String username);//对应UserDao.xml

    List<User> selectAll();
}
